package com.pattern.design.designpattern.Command;

/**
 * author:harisucici on 2018/10/10 09:13
 * email:harisucici@gmail.com
 * name:
 * todo:
 */
public class Command1 implements Command {
    private Receiver receiver;

    /**
     * Instantiates a new Command 1.
     *
     * @param receiver the receiver
     */
    public Command1(Receiver receiver){
        this.receiver = receiver;
    }
    @Override
    public void want2do() {
        receiver.action1();
    }
}
